package com.hksj.Intelligentmanagement.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

/**
 * @ClassName AlarmConfigurationDTO
 * @Author zengke
 * @Date 2023/7/17 15:41
 */
@Data
public class AlarmConfigurationDTO {

    //id
    @NotBlank(message = "id不为空",groups = Update.class )
    @ApiModelProperty("id")
    private String id;

    //楼栋id
    @NotBlank(message = "楼栋id不为空",groups = Create.class )
    @ApiModelProperty("楼栋id")
    private String buildingId;

    //科室id
    @NotBlank(message = "科室id不为空",groups = Create.class )
    @ApiModelProperty("科室id")
    private String departmentId;

    //气体id
    @NotBlank(message = "气体id不为空",groups = Create.class )
    @ApiModelProperty("气体id")
    private String gasId;

    //告警值名称
    @NotBlank(message = "告警值名称不为空",groups = Create.class )
    @ApiModelProperty("告警值名称")
    private String alarmValueName;

    //告警值代码
    @NotBlank(message = "告警值代码不为空",groups = Create.class )
    @ApiModelProperty("告警值代码")
    private String alarmValueCode;

    //告警阈值
    @NotBlank(message = "告警阈值不为空",groups = Create.class )
    @ApiModelProperty("告警阈值")
    private String alarmThreshold;

    //告警值单位
    @NotBlank(message = "告警值单位不为空",groups = Create.class )
    @ApiModelProperty("告警值单位")
    private String alarmValueUnit;

    //告警提示
    @NotBlank(message = "告警提示不为空",groups = Create.class )
    @ApiModelProperty("告警提示")
    private String alarmNotice;

    //备注
    @ApiModelProperty("备注")
    private String remark;

    //当前页
    @ApiModelProperty("当前页")
    private Long currentPage;

    //分页大小
    @ApiModelProperty("分页大小")
    private Long pageSize;

    //分组校验创建接口
    public interface Create{

    }

    //分组校验更新接口
    public interface Update{

    }

}
